//
//  FDWebViewHtmlTool.h
//  FD
//
//  Created by xiaofang wang on 2018/12/6.
//  Copyright © 2018年 ZhiYuan Network. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface FDWebViewHtmlTool : NSObject

/**
 1.将html模板字符串保存到本地

 @param tempHtml 模板字符串
 查看模板字符串的内容 https://s3-eu-west-1.amazonaws.com/fudiandmore/public/f3c7a213b1d342298481f147db1e31d0
 
 下载模板内容字符串url: https://s3-eu-west-1.amazonaws.com/fudiandmore/public/5a621ee0a64442dbbdedc9cba7b40bbc
 */
+ (void)fdwebViewHtmlSaveTemplateHtml:(NSString *)tempHtml;


/**
 2.回本地保存的模板字符串

 @return 返回本地保存的模板字符串
 */
+ (NSString *)fdwebViewTempHTML;





#pragma mark - 12-30 轮播图模板字符串保存本地,从本地获取
/*
 2018-12-30模板
 https://s3-eu-west-1.amazonaws.com/fudiandmore/public/1f9c826f0139458c9e48363f99fa8e1f
 
 资源内容
 https://s3-eu-west-1.amazonaws.com/fudiandmore/public/ca4bd7ba43254a87bd51e9f3436c9737
 */
+ (void)fdwebViewHtmlSaveHomeWhirligigTemplateHtml:(NSString *)tempHtml;
+ (NSString *)fdHomeWhirligigWebViewTempHTML;


#pragma mark - 1-5 推送消息html模板保存本地.从本地加载
/***保存推送消息html模板*/
+ (void)fdSavePushMsgHtmlTemplate:(NSString *)temphtml;
/**从本地获取推送消息html模板*/
+ (NSString *)fdPushMsgHtmlTemplate;


/**
 3.替换模板 html 字符串中的 ${content}
 
 @param htmlStr 要替换的html字符串

 @return 返回替换后的模板 html 字符串
 */
+ (NSString *)fdwebViewReplaceTemplateHtmlMainDivContentWithHtmlStr:(NSString *)htmlStr;


@end

NS_ASSUME_NONNULL_END
